-- GENERATED SPELL FOR [Carnivous the Breaker] --


function spell0_2186(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2186', 20000, 1)
end

function spell1_2186(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_2186', 637, 1)
end

function Sorts_2186(pUnit, Event)
local choix_sorts_2186 = math.random(0, 1)
if choix_sorts_2186 == 0 then
pUnit:RegisterEvent('spell0_2186', 1, 1)
end
if choix_sorts_2186 == 1 then
pUnit:RegisterEvent('spell1_2186', 1, 1)
end
end

function mob2186_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2186', math.random(1500, 3000), 1)
end

function mob2186_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2186_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2186_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2186, 1, 'mob2186_Action')
RegisterUnitEvent(2186, 2, 'mob2186_Leave')
RegisterUnitEvent(2186, 3, 'mob2186_Kill')
RegisterUnitEvent(2186, 4, 'mob2186_Die')
